#import "Fog.h"


@implementation Fog

- (id)initFromPoint:(CGPoint)fromPoint toPoint:(CGPoint)toPoint withSize:(float)withSize withCount:(int)count
{
	_fromPoint = fromPoint;
	_toPoint = toPoint;
	_size = withSize;
	_count = count;
	return self;
}

- (CGPoint)getOverPoint:(CGFloat)step
{
	_count --;
	return CGPointMake( (_toPoint.x-_fromPoint.x)*step + _fromPoint.x, (_toPoint.y-_fromPoint.y)*step + _fromPoint.y);
}

- (float)getSize
{
	return _size;
}

- (int)getCount
{
	return _count;
}


- (void)dealloc {
    [super dealloc];
}

@end
